﻿// Module (namespace equivalent)
module TypeScriptingStuff {

    // Class
    export class Person {

        // Constructor
        constructor(public firstName: string, public lastName: string) {
        }

        // Instance function member
        public getFullName(): string {
            return this.firstName + " " + this.lastName;
        }
    }
}

var person = new TypeScriptingStuff.Person("pato", "loco");
alert(person.getFullName());